import _http from '@/utils/http'

export default {
  // 账户
  account(params, loading) {
    return _http('post', {
      url: "/eas/account/home",
      apiName: '我的账户信息'
    }, params, loading)
  },

  chargeSearch(params, loading) {
    return _http('post', {
      url: "/eas/account/flow/charge/search",
      apiName: '充值流水明细'
    }, params, loading)
  },

  paySearch(params, loading) {
    return _http('post', {
      url: "/eas/account/flow/pay/search",
      apiName: '流水消费明细'
    }, params, loading)
  },

  // 收益
  inStatics(params, loading) {
    return _http('post', {
      url: "/eas/off/income/in/statics",
      apiName: '佣金账户管理-收益佣金'
    }, params, loading)
  },

  inShopList(params, loading) {
    return _http('post', {
      url: "/eas/off/income/in/shop/list",
      apiName: '佣金账户管理-收益佣金账户明细'
    }, params, loading)
  },

  inList(params, loading) {
    return _http('post', {
      url: "/eas/off/income/in/list",
      apiName: '佣金账户管理-收益佣金明细'
    }, params, loading)
  },

  inDetail(params, loading) {
    return _http('post', {
      url: "/eas/off/income/in/detail",
      apiName: '佣金账户管理-佣金详情'
    }, params, loading)
  },

  inListWithdraw(params, loading) {
    return _http('post', {
      url: "/eas/off/income/in/withdraw/list",
      apiName: '佣金账户管理-收益佣金提现明细'
    }, params, loading)
  },

  inDetailWithdraw(params, loading) {
    return _http('post', {
      url: "/eas/off/income/withdraw/detail",
      apiName: '佣金账户管理-佣金提现订单详情'
    }, params, loading)
  },

  // 分润
  outStatics(params, loading) {
    return _http('post', {
      url: "/eas/off/income/out/statics",
      apiName: '佣金账户管理-收益佣金'
    }, params, loading)
  },

  outShopList(params, loading) {
    return _http('post', {
      url: "/eas/off/income/out/shop/list",
      apiName: '佣金账户管理-分润佣金账户明细'
    }, params, loading)
  },

  outList(params, loading) {
    return _http('post', {
      url: "/eas/off/income/out/list",
      apiName: '佣金账户管理-分润佣金明细'
    }, params, loading)
  },

  outListWithdraw(params, loading) {
    return _http('post', {
      url: "/eas/off/income/out/withdraw/list",
      apiName: '佣金账户管理-分润佣金被提现明细'
    }, params, loading)
  },

  mySupplierList(params, loading) {
    return _http('post', {
      url: "/ums/shop/relation/mySupplierList",
      apiName: '我的供应商下拉列表'
    }, params, loading)
  },

  myConsumerList(params, loading) {
    return _http('post', {
      url: "/ums/shop/relation/myConsumerList",
      apiName: '我的分销商下拉列表'
    }, params, loading)
  },
  getAccount(params, loading) {
    return _http('post', {
      url: "/eas/off/income/withdraw/account/get",
      apiName: '佣金提现账户-获取'
    }, params, loading)
  },
  withdrawConf(params, loading) {
    return _http('post', {
      url: "/eas/off/income/withdraw/conf",
      apiName: '获取提现配置'
    }, params, loading)
  },
  withdrawSubmit(params, loading) {
    return _http('post', {
      url: "/eas/off/income/withdraw/submit",
      apiName: '发起提现'
    }, params, loading)
  },
}



